package com.example.entity.check;

import javax.persistence.*;
import java.util.List;

/**
 * Created by simon on 2018/5/20.
 *
 * 年度自检
 *
 * 1.自查现场实拍图（采用原维保作业表单中的说法）：
 1) 机房
 2）轿顶
 3）底坑
 2.自查报告实拍图（请上传完整自查报告，包括封面、封底、及所有自查项目）
 3、加五个不合格项说明（五个全填了就不合格）
 4、加一个 总结选项，  合格  不合格。
 */
@Entity
@Table(name="self_check")
public class SelfCheck {

    @GeneratedValue
    @Id
    private Long id;

    @Column(length = 12)
    private String elevatorId;

    @Column(length = 12)
    private String maintPartyId;

    @Column(length = 64)
    private String maintPartyName;

    @Column(length = 12)
    private String maintUserId;

    @Column(length = 12)
    private String maintUserName;

    @Column(length = 32)
    private String elevatorNum;

    @Lob
    @Column
    private String pic1;    //轿顶照片

    @Lob
    @Column
    private String pic2;    //轿厢照片

    @Lob
    @Column
    private String pic3;    //底坑照片

    @Lob
    @Column
    private String safeUserSign;

    @Column(length = 20)
    private String safeUserSignTime;

    @Lob
    @Column
    private String maintUserSign;

    @Column(length = 20)
    private String maintUserSignTime;

    @Column(length = 8)
    private String isPass; //是否通过  0、不合格 1、合格

    @Column(length = 20)
    private String checkTime; //自检时间

    @Column(length = 225)
    private String reportUrl; //生成的年检报告的url；

    @Transient
    private Integer currentPage;

    @Transient
    private Integer pageSize;

    @Transient
    private List<SelfCheckResult> checkResults; //检查项列表

    /**
     * 年度自检项其他项 (这些项直接存入年检报告文件中，不存入数据库)
     */
    @Transient
    private String equipmentVariety; //设备品种

    @Transient
    private String equipmentType; //设备型式

    @Transient
    private String layer ; //层

    @Transient
    private String station ; //站

    @Transient
    private String door ; //门

    @Transient
    private String useRegistCertiNumber; //使用登记证编号

    @Transient
    private String controlMode ; //控制方式

    @Transient
    private String driverHostNumber ; //驱动主机编号

    @Transient
    private String controlScreenNumber ; //控制屏编号

    @Transient
    private String carSpeedLimiterModel ; //轿厢限速器型号

    @Transient
    private String carSpeedLimiterNumber ; //轿厢限速器编号

    @Transient
    private String dualSpeedLimiterModel ; //对重限速器型号

    @Transient
    private String dualSpeedLimiterNumber ; //对重限速器编号

    @Transient
    private String speedLimiterCaliDate;//限速器校验日期

    /**
     * 杂物电梯填空项
     */
    @Transient
    private String overflowPressure; ///安全阀溢流压力

    @Transient
    private String noOrFullLoadPressure; //空载/满载压力

    @Transient
    private String speedLimiterNextConfDate; //限速器下次确认日期

    @Transient
    private String elevatorNextInspDate; //电梯下次检验日期

    /**
     * 自动扶梯填空项
     */
    @Transient
    private String nominalSpeed;//名义速度

    @Transient
    private String nominalWidth;//名义宽度

    @Transient
    private String inclinationAngle; //倾 斜 角

    @Transient
    private String conveyingCapacity; //输送能力

    @Transient
    private String liftingHeight; // 提升高度

    @Transient
    private String lengthOfUseArea; // 使用区长度

    @Transient
    private String controlCabinetNumber; //控制柜编号

    /**
     * 液压电梯检查项
     */
    @Transient
    private String ratedLoad; // 额定载重量

    @Transient
    private String uplinkRatedSpeed; //上行额定速度

    @Transient
    private String downwardRatedSpeed; //下行额定速度

    @Transient
    private String numberOfCylinders; //油缸数量

    @Transient
    private String jackUpPattern; //顶升型式

    @Transient
    private String isNeedSafetyManager; //是否需要配备专职安全管理员

    public String getEquipmentVariety() {
        return equipmentVariety;
    }

    public void setEquipmentVariety(String equipmentVariety) {
        this.equipmentVariety = equipmentVariety;
    }

    public String getEquipmentType() {
        return equipmentType;
    }

    public void setEquipmentType(String equipmentType) {
        this.equipmentType = equipmentType;
    }

    public String getOverflowPressure() {
        return overflowPressure;
    }

    public void setOverflowPressure(String overflowPressure) {
        this.overflowPressure = overflowPressure;
    }

    public String getNoOrFullLoadPressure() {
        return noOrFullLoadPressure;
    }

    public void setNoOrFullLoadPressure(String noOrFullLoadPressure) {
        this.noOrFullLoadPressure = noOrFullLoadPressure;
    }

    public String getSpeedLimiterNextConfDate() {
        return speedLimiterNextConfDate;
    }

    public void setSpeedLimiterNextConfDate(String speedLimiterNextConfDate) {
        this.speedLimiterNextConfDate = speedLimiterNextConfDate;
    }

    public String getElevatorNextInspDate() {
        return elevatorNextInspDate;
    }

    public void setElevatorNextInspDate(String elevatorNextInspDate) {
        this.elevatorNextInspDate = elevatorNextInspDate;
    }

    public String getNominalSpeed() {
        return nominalSpeed;
    }

    public void setNominalSpeed(String nominalSpeed) {
        this.nominalSpeed = nominalSpeed;
    }

    public String getNominalWidth() {
        return nominalWidth;
    }

    public void setNominalWidth(String nominalWidth) {
        this.nominalWidth = nominalWidth;
    }

    public String getInclinationAngle() {
        return inclinationAngle;
    }

    public void setInclinationAngle(String inclinationAngle) {
        this.inclinationAngle = inclinationAngle;
    }

    public String getConveyingCapacity() {
        return conveyingCapacity;
    }

    public void setConveyingCapacity(String conveyingCapacity) {
        this.conveyingCapacity = conveyingCapacity;
    }

    public String getLiftingHeight() {
        return liftingHeight;
    }

    public void setLiftingHeight(String liftingHeight) {
        this.liftingHeight = liftingHeight;
    }

    public String getLengthOfUseArea() {
        return lengthOfUseArea;
    }

    public void setLengthOfUseArea(String lengthOfUseArea) {
        this.lengthOfUseArea = lengthOfUseArea;
    }

    public String getControlCabinetNumber() {
        return controlCabinetNumber;
    }

    public void setControlCabinetNumber(String controlCabinetNumber) {
        this.controlCabinetNumber = controlCabinetNumber;
    }

    public String getRatedLoad() {
        return ratedLoad;
    }

    public void setRatedLoad(String ratedLoad) {
        this.ratedLoad = ratedLoad;
    }

    public String getUplinkRatedSpeed() {
        return uplinkRatedSpeed;
    }

    public void setUplinkRatedSpeed(String uplinkRatedSpeed) {
        this.uplinkRatedSpeed = uplinkRatedSpeed;
    }

    public String getDownwardRatedSpeed() {
        return downwardRatedSpeed;
    }

    public void setDownwardRatedSpeed(String downwardRatedSpeed) {
        this.downwardRatedSpeed = downwardRatedSpeed;
    }

    public String getNumberOfCylinders() {
        return numberOfCylinders;
    }

    public void setNumberOfCylinders(String numberOfCylinders) {
        this.numberOfCylinders = numberOfCylinders;
    }

    public String getJackUpPattern() {
        return jackUpPattern;
    }

    public void setJackUpPattern(String jackUpPattern) {
        this.jackUpPattern = jackUpPattern;
    }

    public String getIsNeedSafetyManager() {
        return isNeedSafetyManager;
    }

    public void setIsNeedSafetyManager(String isNeedSafetyManager) {
        this.isNeedSafetyManager = isNeedSafetyManager;
    }

    public String getUseRegistCertiNumber() {
        return useRegistCertiNumber;
    }

    public void setUseRegistCertiNumber(String useRegistCertiNumber) {
        this.useRegistCertiNumber = useRegistCertiNumber;
    }

    public String getPic1() {
        return pic1;
    }

    public void setPic1(String pic1) {
        this.pic1 = pic1;
    }

    public String getPic2() {
        return pic2;
    }

    public void setPic2(String pic2) {
        this.pic2 = pic2;
    }

    public String getPic3() {
        return pic3;
    }

    public void setPic3(String pic3) {
        this.pic3 = pic3;
    }

    public String getLayer() {
        return layer;
    }

    public void setLayer(String layer) {
        this.layer = layer;
    }

    public String getStation() {
        return station;
    }

    public void setStation(String station) {
        this.station = station;
    }

    public String getDoor() {
        return door;
    }

    public void setDoor(String door) {
        this.door = door;
    }

    public String getControlMode() {
        return controlMode;
    }

    public void setControlMode(String controlMode) {
        this.controlMode = controlMode;
    }

    public String getDriverHostNumber() {
        return driverHostNumber;
    }

    public void setDriverHostNumber(String driverHostNumber) {
        this.driverHostNumber = driverHostNumber;
    }

    public String getControlScreenNumber() {
        return controlScreenNumber;
    }

    public void setControlScreenNumber(String controlScreenNumber) {
        this.controlScreenNumber = controlScreenNumber;
    }

    public String getCarSpeedLimiterModel() {
        return carSpeedLimiterModel;
    }

    public void setCarSpeedLimiterModel(String carSpeedLimiterModel) {
        this.carSpeedLimiterModel = carSpeedLimiterModel;
    }

    public String getCarSpeedLimiterNumber() {
        return carSpeedLimiterNumber;
    }

    public void setCarSpeedLimiterNumber(String carSpeedLimiterNumber) {
        this.carSpeedLimiterNumber = carSpeedLimiterNumber;
    }

    public String getDualSpeedLimiterModel() {
        return dualSpeedLimiterModel;
    }

    public void setDualSpeedLimiterModel(String dualSpeedLimiterModel) {
        this.dualSpeedLimiterModel = dualSpeedLimiterModel;
    }

    public String getDualSpeedLimiterNumber() {
        return dualSpeedLimiterNumber;
    }

    public void setDualSpeedLimiterNumber(String dualSpeedLimiterNumber) {
        this.dualSpeedLimiterNumber = dualSpeedLimiterNumber;
    }

    public String getSpeedLimiterCaliDate() {
        return speedLimiterCaliDate;
    }

    public void setSpeedLimiterCaliDate(String speedLimiterCaliDate) {
        this.speedLimiterCaliDate = speedLimiterCaliDate;
    }

    public String getReportUrl() {
        return reportUrl;
    }

    public void setReportUrl(String reportUrl) {
        this.reportUrl = reportUrl;
    }

    public List<SelfCheckResult> getCheckResults() {
        return checkResults;
    }

    public void setCheckResults(List<SelfCheckResult> checkResults) {
        this.checkResults = checkResults;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getElevatorId() {
        return elevatorId;
    }

    public void setElevatorId(String elevatorId) {
        this.elevatorId = elevatorId;
    }

    public String getElevatorNum() {
        return elevatorNum;
    }

    public void setElevatorNum(String elevatorNum) {
        this.elevatorNum = elevatorNum;
    }

    public String getIsPass() {
        return isPass;
    }

    public void setIsPass(String isPass) {
        this.isPass = isPass;
    }

    public String getMaintPartyId() {
        return maintPartyId;
    }

    public void setMaintPartyId(String maintPartyId) {
        this.maintPartyId = maintPartyId;
    }

    public String getMaintPartyName() {
        return maintPartyName;
    }

    public void setMaintPartyName(String maintPartyName) {
        this.maintPartyName = maintPartyName;
    }

    public String getMaintUserId() {
        return maintUserId;
    }

    public void setMaintUserId(String maintUserId) {
        this.maintUserId = maintUserId;
    }

    public String getMaintUserName() {
        return maintUserName;
    }

    public void setMaintUserName(String maintUserName) {
        this.maintUserName = maintUserName;
    }

    public String getSafeUserSign() {
        return safeUserSign;
    }

    public void setSafeUserSign(String safeUserSign) {
        this.safeUserSign = safeUserSign;
    }

    public String getSafeUserSignTime() {
        return safeUserSignTime;
    }

    public void setSafeUserSignTime(String safeUserSignTime) {
        this.safeUserSignTime = safeUserSignTime;
    }

    public String getMaintUserSign() {
        return maintUserSign;
    }

    public void setMaintUserSign(String maintUserSign) {
        this.maintUserSign = maintUserSign;
    }

    public String getMaintUserSignTime() {
        return maintUserSignTime;
    }

    public void setMaintUserSignTime(String maintUserSignTime) {
        this.maintUserSignTime = maintUserSignTime;
    }

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public String getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(String checkTime) {
        this.checkTime = checkTime;
    }
}
